<include file="Admin@Public/header" /> 

    
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  <input type="hidden" id="web-url" value="__URL__"/>
    <ol class="breadcrumb">
      <li>网站设置</li>
      <li>网站用户</li>
      <li class="active">列表</li>
    </ol>
  <div class="table-responsive">
         <table class="table">
              <thead>
                <tr>
                  <th class="col-md-1">#</th>
                  <th class="col-md-2">用户名</th>
                  <th class="col-md-2">邮箱</th>
                  <th class="col-md-2">用户角色</th>
                  <th class="col-md-1">最后登录</th>
                  <th class="col-md-1">状态</th>
                  <th class="col-md-3">操作</th>
                </tr>
              </thead>
            <tbody>
        <volist name="list" id="vo">
              <tr>
                <td><input type="checkbox" name="checkbox_id" value="{$vo.id}"></td>
                <td>{$vo.nickname}</td>
                <td>{$vo.email}</td>
                <td>{$vo.role.name}</td>
                <td>{$vo.lastlogintime|date='Y-m-d H:i:s',###}</td>
                <td>&nbsp;
                   <switch name="vo.status"> 
                    <case value="0"><i class="icon-lock"></i></case>
                    <case value="1"><i class="icon-unlock"></i></case>
                    <default />
                  </switch>
                </td>
                <td > <a class="btn btn-default btn-xs" href="__URL__/edit?id={$vo.id}"><i class="icon-edit"></i></a>
   
    <if condition="$vo.status eq 0">
    <a class="btn btn-success btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=1','确定设置为显示？')"><i class="icon-unlock"></i></a>
    </if>
    <if condition="$vo.status eq 1">
    <a class="btn btn-warning btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=-1','确定设置为隐藏？')"><i class="icon-lock"></i></a>
    </if>
    <a class="btn btn-danger btn-xs" href="javascript:checkDialog('__URL__/delete?id={$vo.id}','确定选择彻底删除？')"><i class="icon-trash"></i></a>
                </td>
              </tr>
        </volist> 
            </tbody>
            <tfoot>
              <tr class="info">
               <include file="opreat"/>
              </tr>
            </tfoot> 
          </table>
      </div>
      
       
          
        
     
</div>
<include file="Admin@Public/script_list" />
<include file="Admin@Public/footer" /> 

   
